package com.qh.book.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qh.book.dataobj.Logistics;
import com.qh.book.repository.LogisticsRepository;
import com.qh.book.service.LogisticsService;

@Service
@Transactional
public class LogisticsServiceImpl implements LogisticsService{

	@Autowired
	private LogisticsRepository logisticsRepository;
	
	
	@Override
	public Logistics findByOrderId(String orderId) {
		
		return logisticsRepository.findByOrderId(orderId);
	}

}
